package com.example.model.pojo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.DateFormat;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import javax.persistence.Entity;
import java.util.Date;

/**
 * @Description //TODO
 * @Date 2022/9/23 19:31
 * @Author cxy
 **/
@Data
@Document(indexName = "problem",createIndex = true)
public class ProblemEs {
    @Id
    @Field(type = FieldType.Text)
    private String id;
    @Field(analyzer = "ik_max_word")
    private String title;
    @Field(analyzer = "ik_max_word")
    private String label;
    @Field(type = FieldType.Text)
    private String passrate;
    @Field(type = FieldType.Text)
    private String frequency;
    @Field(analyzer = "ik_max_word")
    private String description;
    @Field(analyzer = "ik_max_word")
    private String examples;

}
